package com.example.demo.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @className wuyp
 * @description:
 * @Date 2022/3/29 17:23
 **/
public class TreeData implements Serializable {
    private String title;
    private Integer id;
    private String field="";
    private boolean checked =false;
    private boolean spread =false;
    List<TreeData> children =new ArrayList<>();

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public List<TreeData> getChildren() {
        return children;
    }

    public void setChildren(List<TreeData> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "TreeData{" +
                "title='" + title + '\'' +
                ", id=" + id +
                ", field='" + field + '\'' +
                ", checked=" + checked +
                ", spread=" + spread +
                ", children=" + children +
                '}';
    }
}
